#include <stdio.h>
int main(void)
{
    printf("请输入天数");
    int days;
    
    while(1)
    {
        int reval=scanf("%d",&days);
        if(reval==1&& getchar()=='\n')
        {
            printf("%d天等于%d星期%d天",days,days/7,days%7);
            break;
        }
        while(getchar()=='\n');
            printf("请重新输入数字");
    
    }

    return 0;

}